package com.jy.adscm.zltx.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.jy.adscm.core.interceptor.DateJsonDeserializer;

import java.io.Serializable;

/**
 * <p>
 * 回收与发放记录表
 * </p>
 *
 * @author yyy
 * @since 2018-11-08
 */
public class JyDrawingIssueRecovery implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long drawingId;
    private Integer drawingEditId;
    private String drawingVersion;
    private Integer issuer;
    @TableField(exist = false)
    private String issuerName;
    private Integer issuNum;
    private Integer receiver;
    @TableField(exist = false)
    private String receiverName;
    private Date receiveTime;
    private String issuRemark;
    private Integer recoverier;
    @TableField(exist = false)
    private String recoverierName;
    private Date recoveryTime;
    private String recoveryRemark;

    public String getIssuerName() {
        return issuerName;
    }

    public void setIssuerName(String issuerName) {
        this.issuerName = issuerName;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getRecoverierName() {
        return recoverierName;
    }

    public void setRecoverierName(String recoverierName) {
        this.recoverierName = recoverierName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDrawingId() {
        return drawingId;
    }

    public void setDrawingId(Long drawingId) {
        this.drawingId = drawingId;
    }

    public Integer getDrawingEditId() {
        return drawingEditId;
    }

    public void setDrawingEditId(Integer drawingEditId) {
        this.drawingEditId = drawingEditId;
    }

    public String getDrawingVersion() {
        return drawingVersion;
    }

    public void setDrawingVersion(String drawingVersion) {
        this.drawingVersion = drawingVersion;
    }

    public Integer getIssuer() {
        return issuer;
    }

    public void setIssuer(Integer issuer) {
        this.issuer = issuer;
    }

    public Integer getIssuNum() {
        return issuNum;
    }

    public void setIssuNum(Integer issuNum) {
        this.issuNum = issuNum;
    }

    public Integer getReceiver() {
        return receiver;
    }

    public void setReceiver(Integer receiver) {
        this.receiver = receiver;
    }

    public Date getReceiveTime() {
        return receiveTime;
    }
    @JsonDeserialize(using = DateJsonDeserializer.class)
    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    public String getIssuRemark() {
        return issuRemark;
    }

    public void setIssuRemark(String issuRemark) {
        this.issuRemark = issuRemark;
    }

    public Integer getRecoverier() {
        return recoverier;
    }

    public void setRecoverier(Integer recoverier) {
        this.recoverier = recoverier;
    }

    public Date getRecoveryTime() {
        return recoveryTime;
    }
    @JsonDeserialize(using = DateJsonDeserializer.class)
    public void setRecoveryTime(Date recoveryTime) {
        this.recoveryTime = recoveryTime;
    }

    public String getRecoveryRemark() {
        return recoveryRemark;
    }

    public void setRecoveryRemark(String recoveryRemark) {
        this.recoveryRemark = recoveryRemark;
    }

    @Override
    public String toString() {
        return "JyDrawingIssueRecovery{" +
        "id=" + id +
        ", drawingId=" + drawingId +
        ", drawingEditId=" + drawingEditId +
        ", drawingVersion=" + drawingVersion +
        ", issuer=" + issuer +
        ", issuNum=" + issuNum +
        ", receiver=" + receiver +
        ", receiveTime=" + receiveTime +
        ", issuRemark=" + issuRemark +
        ", recoverier=" + recoverier +
        ", recoveryTime=" + recoveryTime +
        ", recoveryRemark=" + recoveryRemark +
        "}";
    }
}
